package inheritance;

public class Manager extends Employee {
  private double bonus;


  public Manager(String n, double s, int year, int month, int day) {
    super(n, s, year, month, day);
    this.bonus = 0;
  }


  public double getSalary() {
    double baseSalary = super.getSalary();
    return baseSalary + this.bonus;
  }


  public void setBonus(double b) {
    this.bonus = b;
  }
}
